/*
 *
 *  This file is part of Cfu
 *
 *  Cfu is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *  
 *  Cfu is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with Cfu. If not, see <http://www.gnu.org/licenses/>.
 *
 *  main.cc - william le ferrand (william@corefarm.com) 29/04/2010 15:30
 *
 */


// STL
#include <stdio.h>
#include <iostream>

// QT
#include <QApplication>
#include <QPushButton>

// CFU
#include <configuration.hpp>
#include <submitter.hpp>
#include <cfuapplication.hpp>

QString cfuConfigFile = ".cfu.conf" ;

int main(int argc, char *argv[])
{
  std::cout << "@@@ Cfu (c) 2010 Themipsfactory" << std::endl;

  QApplication app(argc, argv);
  app.setQuitOnLastWindowClosed(false); 
  
  configuration_t *conf = new configuration_t(cfuConfigFile) ;
  submitter_t *subm = new submitter_t (conf); 

  cfuapplication_t *cfuapp = new cfuapplication_t (conf, subm);
  
  app.exec();
   
  delete cfuapp; 
  delete subm; 
  delete conf; 

  return 0;
}
